package com.wx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wx.dao.WxMassMessageMapper;
import com.wx.entity.WxMassAndSendResult;
import com.wx.entity.WxMassMessage;
import com.wx.entity.WxMassMessageExample;
import com.wx.service.WxMassMessageService;

@Service("WxMassMessageService")
public class WxMassMessageImpl implements WxMassMessageService {
	@Resource
	private WxMassMessageMapper wxMassMessageMapper;

	@Override
	public int insert(WxMassMessage wxMassMessage) {
		return wxMassMessageMapper.insert(wxMassMessage);
	}

	@Override
	public List<WxMassMessage> selectByExample(WxMassMessageExample example) {
		return wxMassMessageMapper.selectByExample(example);
	}

	@Override
	public WxMassMessage selectByPrimaryKey(Integer id) {
		return wxMassMessageMapper.selectByPrimaryKey(id);
	}

	@Override
	public int countByExample(WxMassMessageExample example) {
		return wxMassMessageMapper.countByExample(example);
	}

	@Override
	public int updateByExample(WxMassMessage record, WxMassMessageExample example) {
		return wxMassMessageMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByPrimaryKey(WxMassMessage record) {
		return wxMassMessageMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return wxMassMessageMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int deleteByPrimaryKey(WxMassMessageExample example) {
		return wxMassMessageMapper.deleteByExample(example);
	}

	@Override
	public List<WxMassAndSendResult> selectMassAndResultByExample(Map<String, Object> params) {
		return this.wxMassMessageMapper.selectMassAndResultByExample(params);
	}

	@Override
	public List<WxMassAndSendResult> selectMassAndResultByTagId(Map<String, Object> params) {
		return wxMassMessageMapper.selectMassAndResultByTagId(params);
	}
}
